package meihua.stopcarapp.ui;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import butterknife.Bind;
import butterknife.OnClick;
import meihua.mylibrary.base.BaseActivity;
import meihua.stopcarapp.R;

/**
 * Name: LGZ
 * Time: 2017/5/19.
 * Dec:
 */

public class OrderEcodeFinishActivity extends BaseActivity {
    @Bind(R.id.toolbar_center)
    TextView toolbarCenter;

    /**
     * 入口
     *
     * @param activity
     */
    public static void startAction(Activity activity) {
        Intent intent = new Intent(activity, OrderEcodeFinishActivity.class);
        activity.startActivity(intent);
    }

    @Override
    public int getLayoutId() {
        return R.layout.activity_order_ecode_finish;
    }

    @Override
    public void initPresenter() {

    }

    @Override
    public void initView(Bundle savedInstanceState) {
        toolbarCenter.setText("收费成功");
    }

    @OnClick({R.id.toolbar_left, R.id.activity_order_ecode_finish_btn})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.toolbar_left:
                this.finish();
                break;
            case R.id.activity_order_ecode_finish_btn:
                this.finish();
                break;
        }
    }
}
